<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>userCenter</title>
    <link rel="stylesheet" href="/css/person.css" type="text/css"></link>
    <script src="/js/jquery-3.3.1.min.js"></script>
</head>
<body>

<div id="header">
    <div class="top">
        <#if user?exists>
            <div class="left">
                <input id="top_user_login_tag" value="${user.realname}" type="hidden">
                <a href="/loginOut">[退出登录]</a>
                <a href="#">
                    <span class="sp">新消息(<font>0</font>)</span>
                </a>
                <span class="sp userNickName" title="jd">${user.nickname}</span>
                <span class="sp">积分：<font class="myInteger">${user.myinteger}</font></span>
            </div>
        <#else>
            <div class="left">
                <a href="/login">请登录</a> <a href="/register">免费注册</a>
            </div>
        </#if>

        <div class="right">
            <a href="/">首页</a>
            <a href="/common/integralMall.html">积分商城</a>
            <a href="/school.htm">企业合作</a>
            <a href="/userCenter/person">我的易学</a>
            <#if countcart?exists>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">${countcart}</span>）</a>
            <#else>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">0</span>）</a>
            </#if>
            <a href="/userCenter/userCollection.html">我的收藏夹</a>
            <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2636862834&amp;site=qq&amp;menu=yes”"
               target="_blank">联系客服</a>
            <a id="tc" href="#">网站导航 </a>
            <a href="/common/help/help.html">帮助</a>
        </div>
    </div>
</div>

<div id="bottom">
    <div class="left">
        <a href="/"><img src="/images/logo.png"></a>
    </div>
    <div class="right">
        <form action="/search">
            <input type="text" class="search" id="queryKeysStr" value="" name="search">
            <input type="submit" value="搜索" class="buttom" id="queryAllButton">
        </form>

        <div class="right_bottom">
            <a href="/searchBypro?product=JAVA">JAVA</a>
            <a href="/searchBypro?product=CCIE">CCIE</a>
            <a href="/searchBypro?product=PS">PS</a>
            <a href="/searchBypro?product=C">C</a>
            <a href="/searchBypro?product=CCNA">CCNA</a>
            <a href="/searchBypro?product=OCA">OCA</a>
            <a href="/searchBypro?product=Android">Android</a>
            <a href="/searchBypro?product=HTML">HTML</a>
            <a href="/searchBypro?product=思科">思科</a>
        </div>
    </div>
</div>

<div id="nav">
    <ul class="menu1">
        <li class="now"><a href="/userCenter/person">我的易学</a></li>
        <li><a href="/userCenter/teacher.html">讲师中心</a></li>
        <li style="float: right;"><a href="/">返回首页</a></li>
    </ul>
</div>

<div id="main">
    <div class="left sideMenu">
        <ul>
            <li class="pic"><a href="/userCenter/person"><img
                            src="${Session['user'].photo?default('/images/defaultUserIco.jpg')}" height="150" width="151"></a></li>
            <li></li>
            <li>
                <h3 class="on">
                    <em></em>安全
                </h3>
                <div class="left_navi_div" style="">
                    <a href="/userCenter/index.html">账号设置</a> <a class="now"
                                                                 href="/userCenter/person">个人资料</a>
                </div>
            </li>
            <li>
                <h3>
                    <em></em>资产
                </h3>
                <div class="left_navi_div" style="display: block;">
                    <a href="/userCenter/myRestDetail.html">余额明细</a> <a
                            href="/userCenter/queryIntegralDetail.html">我的积分</a> <a
                            href="/userCenter/myCard.html">我的礼券</a>
                </div>
            </li>
            <li>
                <h3>
                    <em></em>购物
                </h3>
                <div class="left_navi_div" style="display: block;">
                    <a href="/userCenter/shoppingCart">我的购物车</a> <a
                            href="/userCenter/purchasedGoodsList.html">我的课程</a> <a
                            href="/userCenter/myStudyApply.html">我的求学</a> <a
                            href="/userCenter/userCollection.html">我的收藏</a> <a
                            href="/userCenter/appraiseList.html">我的评价</a> <a
                            href="/userCenter/userViolationList.html">违规投诉</a>
                </div>
            </li>
        </ul>
    </div>

    <div class="right">
        <h1>个人资料</h1>

        <div class="sns-nf">
            <input type="hidden" value="0" id="pseronInput">

            <div class="tips-box">
                亲爱的<b>${user.nickname}</b>，建议填写真实的资料，有助于好友找到你哦。
            </div>

            <input type="hidden" name="userIco" id="idCardPicInput"
                   value="/default/defaultUserIco.jpg">

            <form id="idCardPicForm" action="/userCenter/upload/${Session['user'].user}"
                  target="_self" method="POST" enctype="multipart/form-data">

                <p class="pic">
                    <label style="float: left;">当前头像：</label> <img id="idCardPic"
                                                                   style="display: block;"
                                                                   src="${Session['user'].photo?default('/images/defaultUserIco.jpg')}"
                                                                   height="200" width="200"> <input type="file"
                                                                                                    name="file"
                                                                                                    id="chooseFile"
                                                                                                    onchange="uploadTeacherApplyPic()"><font
                            class="tip-font">图片大小不超过500kb</font>
                </p>
            </form>

            <form name="myForm" action="/userCenter/save" method="post">
                <input type="hidden" name="temCity" id="temCity" value="${Session.user.city?default('')}">
                <input type="hidden" name="user" id="user" value="${Session.user.user}">
                <p>
                    <label>昵称：</label> <input type="text" class="f-txt"
                                              value="${Session["user"].nickname}" id="nickname" name="nickname">
                </p>
                <p>
                    <label>真实姓名：</label> <input type="text" class="f-txt" disabled
                                                value="${Session["user"].realname}" id="realname" name="realname">
                </p>
                <p>
                    <label>性别：</label> <input type="radio" <#if Session["user"].sex?default('男') == '男'>checked</#if>
                                              name="sex" value="男">男
                    <input type="radio" name="sex" <#if Session["user"].sex?default('男') == '女'>checked</#if> value="女">女
                </p>
                <p>
                    <label>居住地：</label>
                    <select name="province" onchange="addCity()"id="province">
                        <option value="广东省" <#if Session["user"].province?default('') == '广东省'>selected</#if>>广东省</option>
                        <option value="北京" <#if Session["user"].province?default('') == '北京'>selected</#if>>北京</option>
                    </select>
                    <select name="city" id="city">

                    </select>
                </p>
                <input type="submit" value="保存" class="submit" id="personal_submit">
            </form>
        </div>
    </div>
</div>
<script src="/js/userCenter.js"></script>
</body>
</html>